#ifndef RECORD_H
#define RECORD_H

#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
//#include <stdlib>

using namespace std;

class Record {

private:
        long int clientID;
        char *firstName;
        char *lastName;
        int streetNumber;
        char *streetName;
		char *city;
        float balance;
		char firstNameArray[30];
		char lastNameArray[30];
		char streetNameArray[30];
		char cityArray[30];

public:
        Record();
        Record(long int ID, char myFirstName[30], char myLastName[30], int myStreetNumber, char myStreetName[30], float myBalance);
        long int getID();
        void setID(int ID);
        char* getFirstName();
        void setFirstName(char myFirstName[30]);
        char* getLastName();
        void setLastName(char myLastName[30]);
        int getStreetNumber();
        void setStreetNumber(int myStreetNumber);
        char* getStreetName();
        void setStreetName(char myStreetName[30]);
		char* getCity();
		void setCity(char myCity[30]);
        float getBalance();
        void setBalance(float myBalance);

		bool operator== (Record x)
		{
			if(x.balance == this->balance 
				&& x.cityArray == this->cityArray
				&& x.clientID == this->clientID
				&& x.firstNameArray == this->firstNameArray
				&& x.lastNameArray == this->lastNameArray
				&& x.streetNameArray == this->streetNameArray
				&& x.streetNumber == this->streetNumber )
			{
				return true;
			}
			return false;
		}

};

#endif
